Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

151
Vistas
Getting "You are trying to call the "FindChild" method or property of an object that does not exist." when running a loop Javascript

I have a list of "Row" object and need to click one by one and check if an object exists inside. If that object exists, break or else continue the loop.

But when I run this code, It will click on the first row and check for the object and come back to the initial page . But the test fails when it continues the loop for the second row. The error I'm getting is

You are trying to call the "FindChild" method or property of an object that does not exist.

Can anyone see what I'm doing wrong here.

function test1() {
  var i;
  var MattersList = Aliases.Teams.formLexisnexisDevMicrosoftTeamsM.table.FindAllChildren("ObjectType", "Row");
  for (var i = MattersList.length - 2; i > 0; i--) {
    MattersList[i].RefreshMappingInfo;
    Log.Message(i);
    if (!Aliases.Teams.formLexisnexisDevMicrosoftTeamsM.WaitAliasChild("table", 500).Exists) {
      Aliases.Teams.formLexisnexisDevMicrosoftTeamsM.buttonReloadTab.Click();
      Delay(4000);
    }
    MattersList[i].FindChild("Id", "0").FindChild("Id", "0").Click();
    if (!Aliases.Teams.formLexisnexisDevMicrosoftTeamsM.WaitAliasChild("TextThereAreNoSuggestedDocuments", 500).Exists) {
      break;
    }
    Aliases.Teams.formLexisnexisDevMicrosoftTeamsM.textMyMatters.Click();
  }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda